home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Snippets / Toolbox / DragWindowGrid / READ ME < prev    next >
Encoding:
Text File  |  1994-12-13  |  537 b   |  12 lines  |  [TEXT/ttxt]

  1. DragWindowGrid- a sample showing how to write a function to drag a 
  2. window around on the screen so that it can only be released along
  3. grid lines.  No patches, no hooking into drag procs, nothing fancy.
  4. This just tracks an XOR frame around the screen similar to how the 
  5. Window Manager behaves, and when you let go in a different spot
  6. MoveWindow moves the window to the right place.
  7.  
  8. DrawCode.c has the DragWindowGrid routine in it.  You can change
  9. the kIncrement constant to change the size of the grid rects.
  10.  
  11. --Nitin Ganatra, DTS
  12. 12/94